home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
dfue
/
avmnfax
/
rexx
/
broadcast.avm
< prev
next >
Wrap
Text File
|
1995-03-09
|
2KB
|
79 lines
/* to broadcast to interested parties about changes in mailboxes */
/* action = 'addtomailbox', 'deletefrommailbox', 'refreshmailbox', 'refreshmailboxentry' */
parse arg action mailbox magiccookie .
call addlib("rexxsupport.library", 0, -30, 0)
/* who are interested? AVMCALLNOTIFIER, AVMLOGVIEW.#? */
ports = upper(show('p'))
numports = words(ports)
if action = 'addtomailbox' | action = 'deletefrommailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox magiccookie
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
end
end
if action = 'refreshmailbox' then do
if showlist('p', 'AVMCALLNOTIFIER') then
address 'AVMCALLNOTIFIER' action mailbox
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox
end
end
end
if action = 'refreshmailboxentry' then do
do i = 1 to numports
cport = word(ports, i)
if pos('AVMLOGVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULER.', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
if pos('AVMSCHEDULERVIEW', cport) > 0 then do
address value cport
''action mailbox magiccookie
end
end
end